package com.jay;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Created by caoyuan7 on 2020/4/27.
 */
public class Action {
    public static void main(String args[]){
        SensitivewordFilter filter = new SensitivewordFilter();// 加载敏感词库
        Set<String> set = filter.getSensitiveWord("垃圾", 2);// 比对敏感词
        if (set.size() > 0) {
          for(String s: set){
              System.out.println("***************"+s);
          }
        }

    }
}
